inverse functions and logarithms grade 12